/**
 * 
 */
package com.zito.bean;

import javax.validation.groups.Default;


import com.downlove.validation.notnull.NotNull;
import com.downlove.validation.strlength.CheckLength;
import com.zito.pojo.AlbumPOJO;

/**
 * @author YunHai.Jiang
 * 
 */
public class Album extends AlbumPOJO {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2882262513816850346L;
	private Long id;
	@NotNull(message = "图集标题不能为空", groups = { Default.class })
	@CheckLength(message = "图集标题字符长度不能小于4个字符，不能大于200个字符，一个中文为2个字符", min = 4, max = 200, groups = { Default.class })
	private String title;
	@NotNull(message = "图集说明不能为空", groups = { Default.class })
	@CheckLength(message = "图集说明字符长度不能小于4个字符，不能大于5000个字符，一个中文为2个字符", min = 4, max = 5000, groups = { Default.class })
	private String content;
	private String posttime;
	@NotNull(message = "请选择图集封面图片", groups = { Default.class })
	private String photo;
	private int clicknum = 0;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPosttime() {
		return posttime;
	}

	public void setPosttime(String posttime) {
		this.posttime = posttime;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public int getClicknum() {
		return clicknum;
	}

	public void setClicknum(int clicknum) {
		this.clicknum = clicknum;
	}

}
